<?php
/*
 * 车系页
 * @package    auto
 * @author     YuNian, mark
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 83da67e733c65bc8e3d10720d7a5a1b9f2d90a97 $
 */
defined('IN_IXDCW') or exit('Access Denied');
require_once DT_CORE."/".MODULE_NAME."/common.inc.php";
require_once MD_ROOT.'/header.inc.php';
include load('auto.lang');
// pic
$carPicNum    = AutoPicture::getNum($carId);
$carPicList   = AutoPicture::getPictures($carId);
$carPicThumbs = AutoPicture::getThumbs($carId);

// models
$carModels    = AutoModel::shortByCarid($carId);
$carModelsNum = count($carModels);

$carModels  = AutoModel::translate($carModels);
$modelsSale = AutoModel::saleGroup($carModels);


// relation
$carVideo      = AutoVideo::byCar($carId);
$carInfomation = AutoInformation::byCar($carId, 15);
$carQuote = AutoQuote::byCar($carId, 15);
$carRelation   = AutoCar::relation($carId, 8);
$carAttention  = AutoCar::attention($carId, 8);
$carOnsale     = AutoBrand::manusAndCars($brandId, array('tc.issale=1'));
AutoCar::updateHits($carId);
include template('car', $module);